package com.seu.me.disruptor.generate2;

import com.seu.me.disruptor.generate1.Trade;

import com.lmax.disruptor.EventHandler;

/**
 * Created by liangfeihu on 2017/11/27.
 */
public class Handler3 implements EventHandler<Trade> {
    @Override
    public void onEvent(Trade event, long sequence, boolean endOfBatch) throws Exception {
        System.out.println("eventId=" + event.getId() + ", handler3: name: " + event.getName() + " , price: " + event.getPrice() + ";  instance: " + event.toString());
    }
}
